﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Solution.Business;

namespace Solution.Business.Infrastructure
{
    public static class CAuthen
    {
        public static string Insert = "I ";
        public static string Delete = "D ";
        public static string Update = "U ";
        public static string All = "A ";
        public static string MessDefault = "You are not authorized!  <a href =\"#\" onclick=\"window.history.go(-1);\">Click to back</a>";

        public static bool IsTrueAuthenFun(UserData user, string Module, string Fun)
        {
            return new UserBLL().IsTrueAuthenFun(user.UserID, Module, Fun);
        }
    }

}
